package com.stockz.ui.swing.core.menu;

import java.awt.event.KeyEvent;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.stockz.ui.swing.widget.JMenu;

@Component 
public class ViewMenu extends JMenu implements InitializingBean {
	private static final long serialVersionUID = 2612141730815393922L;

	@Autowired
	private MenuBar menuBar;
	
	public ViewMenu() {
		super("View");
		setMnemonic(KeyEvent.VK_V);
	}
	
	@Override
	public void afterPropertiesSet() throws Exception {
		menuBar.add(this);
	}
	
}
